﻿using System.Linq;

namespace StreetPacMan.Server.HardcodedGameData
{
    public class MasarikSpecialApplesLocationsProvider : ISpecialApplesLocationsProvider
    {
        public InitialApple[] GetAllSpecialApples()
        {
            return new[]
                       {
                           MasarikGeos.Chen_Frish,
                           MasarikGeos.Chen_Neviim,
                           MasarikGeos.Frish_Shlomo,
                           MasarikGeos.kingGeorg_Neviim
                       }
                .Select(x => new InitialApple {Lat = x.Lat, Lon = x.Lon, Type = AppleKind.Super})
                .Concat(new[] { new InitialApple{Lat= MasarikGeos.shoftim_shimshon.Lat, Lon=MasarikGeos.shoftim_shimshon.Lon, Type = AppleKind.Cherry} })
                .ToArray();
        }
    }
}